package cn.itsource.core;

import cn.hutool.http.HttpUtil;
import cn.itsource.config.SmsProperties;
import lombok.AllArgsConstructor;
import lombok.Data;

@Data
@AllArgsConstructor
public class SmsTemplate {

    private SmsProperties smsProperties;

    public void sendSms(String phone,String message) {
        String format = String.format(smsProperties.getUrl(),
                smsProperties.getUsername(),
                smsProperties.getKey(), phone, message);
        String s = HttpUtil.get(format);
    }
}
